package com.ihr360.oneclick.dao;

import com.ihr360.oneclick.dto.spreadsheet.SpreadSheetRowHeaderDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author tom
 * @date 17-12-22
 */
public interface SpreadsheetRowHeaderDao extends JpaRepository<SpreadSheetRowHeaderDto, String> {

    SpreadSheetRowHeaderDto findBySpreadsheetId(String spreadsheetId);

    @Transactional
    void deleteBySpreadsheetIdIn(List<String> spreadsheetIdList);

    @Transactional
    void deleteBySpreadsheetId(String spreadsheetId);

}
